package net.whzjkj.gateway.model.vo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @description: 队列消息
 * @author: Mr.Hu
 * @create: 2018-11-07 08:51
 **/
@Data
@NoArgsConstructor
public class QueueMessageVO<T> implements Serializable {
    /**
     * 消息ID
     */
    private int messageId;
    /**
     * 指令文本
     */
    private String commandText;
    /**
     * 数据
     */
    private T data;


    public QueueMessageVO(int messageId) {
        this.messageId = messageId;
    }

    public QueueMessageVO(T data) {
        this.data = data;
    }

    public QueueMessageVO(int messageId, T data) {
        this.messageId = messageId;
        this.data = data;
    }
}
